package com.xiaoq.system.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.mongodb.morphia.annotations.Transient;

import java.io.Serializable;

@Entity(value="zone_master",noClassnameStored=true)
public class ZoneMasterEntity extends MongoEntity implements Serializable{
	 
	@JsonIgnore
	@Transient
	private static final long serialVersionUID = 2774945159852328400L;

	@Indexed
	private String code; // 编码
	private String name; // 名字
	private String shortName; //简称

	@Indexed
	private int levels;// 级别
	private String firstChar;// 拼音首字母

	@Indexed
	private String onlineFlag; //开通标志
	private Integer hotScore;//热度
	private String parentCode; //父级别的code
	private String pinYin;  // 名字的拼音
	private String pinYinHeadChar; // 拼音的首字母
	private int onlineCount; // 已上线景区的个数
	private String areaCode; //

	private Double longitude; // 经度
	private Double latitude; // 纬度
	
	private int sitesCount; //行政区划中景区的数量
	
	

	public int getSitesCount() {
		return sitesCount;
	}
	public void setSitesCount(int sitesCount) {
		this.sitesCount = sitesCount;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public int getLevels() {
		return levels;
	}
	public void setLevels(int levels) {
		this.levels = levels;
	}
	public String getFirstChar() {
		return firstChar;
	}
	public void setFirstChar(String firstChar) {
		this.firstChar = firstChar;
	}
	public String getOnlineFlag() {
		return onlineFlag;
	}
	public void setOnlineFlag(String onlineFlag) {
		this.onlineFlag = onlineFlag;
	}
	public Integer getHotScore() {
		return hotScore;
	}
	public void setHotScore(Integer hotScore) {
		this.hotScore = hotScore;
	}
	public String getParentCode() {
		return parentCode;
	}
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
	public String getPinYin() {
		return pinYin;
	}
	public void setPinYin(String pinYin) {
		this.pinYin = pinYin;
	}
	public String getPinYinHeadChar() {
		return pinYinHeadChar;
	}
	public void setPinYinHeadChar(String pinYinHeadChar) {
		this.pinYinHeadChar = pinYinHeadChar;
	}
	public int getOnlineCount() {
		return onlineCount;
	}
	public void setOnlineCount(int onlineCount) {
		this.onlineCount = onlineCount;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
}
